package com.szrt.day20170419.ch05;


public class PrimeRun implements Runnable {
	
	
	private int max;

	public PrimeRun(int max) {
		this.max = max;
	}



	@Override
	public void run() {
		for(int i=1;i<=max;i++){
			System.out.println(Thread.currentThread().getName()+":"+i);
			try {
				Thread.sleep(100);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
		
	}

}
